home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / game / role / ldmud-3.2-bin.lha / mud / doc / efun / symbol_variable < prev    next >
Text File  |  2001-04-06  |  923b  |  29 lines

  1. SYNOPSIS
  2.         closure symbol_variable(string arg)
  3.         closure symbol_variable(symbol arg)
  4.         closure symbol_variable(int arg)
  5.  
  6. DESCRIPTION
  7.         Constructs an identifier (lfun) closure from the global
  8.         variable arg of the current program. The variable may be given as a
  9.         symbol, by name or by its ordinal number in the objects
  10.         variable table.
  11.         If there is no such variable, or if it is not visible outside
  12.         the object, 0 is returned.
  13.  
  14.         If the argument is an integer, and the variable is inherited
  15.         and private in the inherited object (i.e. hidden), then a
  16.         privilege violation will occur.
  17.  
  18. HISTORY
  19.         Enabled since 3.2.1@8
  20.  
  21. EXAMPLES
  22.         int base;
  23.         int var;
  24.         symbol_variable("var")        -> #'<this_object>->var
  25.         symbol_variable(0)        -> #'<this_object>->base
  26.  
  27. SEE ALSO
  28.         lambda(E), quote(E), symbol_function(E)
  29.